package com.web.expspringboot.service;

import com.web.expspringboot.entity.UserSt;

import java.util.List;


public interface UserService {
    boolean getPhoneCode(String phoneNum, int mode);

    int signInCheck(String phoneNum, String password);

    int signUp(String phoneNum, String code, String password);

    int resetPassword(String phoneNum, String code, String newPassword);

    boolean getIsManager(String phoneNum);

    List<UserSt> getAllUser();

    boolean updateOneUser(UserSt user);

    Long getSessionUserId();

    boolean logout();
}
